#include <rtthread.h>
#include "uc_log.h"

void test_data_print(const char *fun, char *data, int len)
{
    rt_kprintf("[GW] D %s len %d:", fun, len);
    for (int n = 0; n < len; n++)
    {
        rt_kprintf("0x%x ", *(data + n));
    }
    rt_kprintf("\n");
}

void wiota_test_command(const char *string, int cmd)
{
    const char command_string[1][40] =
        {
            "DEFAULT",
        };

    // corresponds to the array listed above.
    if (cmd < 1)
    {
        rt_kprintf("[GW] D %s cmd %s\n", string, command_string[cmd]);
    }
    else
    {
        rt_kprintf("[GW] D %s cmd 0x%x\n", string, cmd);
    }
}
